//
//  SMNewsTableViewCell.m
//  ShoppingMall
//
//  Created by Demon on 2018/3/22.
//  Copyright © 2018年 Demon. All rights reserved.
//

#import "SMNewsTableViewCell.h"

@interface SMNewsTableViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *newsImageView;
@property (weak, nonatomic) IBOutlet UILabel *newsTitleLb;
@property (weak, nonatomic) IBOutlet UILabel *descriLb;

@end

@implementation SMNewsTableViewCell

- (void)setNewsCellModel:(SMNewsModel *)newsModel {
    [self.newsImageView sd_setImageWithURL:[NSURL URLWithString:newsModel.imageUrl]];
    self.newsTitleLb.text = newsModel.title;
    self.descriLb.text = newsModel.desc;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
